package com.pushtime;

import com.pushtime.config.Constants;
import com.pushtime.service.GeneratorService;
import com.pushtime.service.impl.GeneratorServiceImpl;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.regex.MatchResult;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

@SpringBootApplication
public class Application implements CommandLineRunner {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);
        GeneratorService generatorService = context.getBean(GeneratorService.class);
        generatorService.generate();
    }

    @Override
    public void run(String... args) throws Exception {
    }
}
